data = [1, 2, 3, [4, 5, 6], '鸡你太美', {'name': '波多野结衣', '胸围': 60, '臀围': 88}]

for d in data:
    print(d)

# 带下标和元素拼在一起输出
for d in enumerate(data):
    print(d)
# 带下标和元素拼在一起输出
for index, d in enumerate(data):
    print(index, d)

# 字典：key
for d in data[-1]:
    print(d)
# 字典：key:value
for d in data[-1].items():
    print(d)
# 字典：value
for d in data[-1].values():
    print(d)

for i in range(10):
    print(i)

for i in range(1, 10, 2):
    print(i)

# 构造一个列表，包含的元素1,2,3,4,5...100
data2 = []
for i in range(1, 101):
    data2.append(i)
print(data2)

# 偷巧(优雅)使用，列表生成式
data3 = [i for i in range(1, 101)]
print(data3)
